﻿<Window x:Class="MyProject.Views.Chart.ChartDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:MyProject.Views.Chart" xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
        mc:Ignorable="d"
        Title="Диаграмма и доп задание" Height="450" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Rectangle 
            Grid.Column="3" 
            Grid.ColumnSpan="2"
            HorizontalAlignment="Stretch" 
            VerticalAlignment="Top"
            Height="300"
            Fill="#FFE4EAEA"
            Margin="20,60,20,0"
            Stroke="Black" 
            >
        </Rectangle>
        <StackPanel 
            Grid.Column="3" 
            Grid.ColumnSpan="2"
            HorizontalAlignment="Stretch" 
            VerticalAlignment="Top"
            Margin="20,60,20,0"
            Height="300">
            <StackPanel HorizontalAlignment="Center" Margin="20" Orientation="Horizontal">
                <Label HorizontalAlignment="Center" FontWeight="Bold" FontSize="14">Доп задание:</Label>
            </StackPanel>
            <StackPanel Margin="20" Orientation="Horizontal">
                <TextBlock MaxWidth="170" TextWrapping="Wrap">Принятых в 2015 году, прописанных и проживающих в городе Ростове н/Дону:</TextBlock>
                <Label Margin="10,0,0,0" Background="Aqua" VerticalAlignment="Center" x:Name="count_1">0</Label>
                <Label VerticalAlignment="Center">.чел</Label>
            </StackPanel>
            <StackPanel Margin="20" Orientation="Horizontal">
                <TextBlock MaxWidth="180" TextWrapping="Wrap">Прописанных и проживающих в разных местах:</TextBlock>
                <Label HorizontalAlignment="Right" Margin="10,0,0,0" Background="Aqua" VerticalAlignment="Center" x:Name="count_2" >0</Label>
                <Label VerticalAlignment="Center" HorizontalAlignment="Right">.чел</Label>
            </StackPanel>
        </StackPanel>

        <StackPanel 
            VerticalAlignment="Stretch"
            HorizontalAlignment="Stretch"
            Grid.Row="0" 
            Grid.ColumnSpan="3"
            Grid.RowSpan="1"
            Grid.Column="0"
            Margin="15">
            <lvc:PieChart
                VerticalAlignment="Stretch"
                HorizontalAlignment="Stretch"
                MinHeight="350"
                x:Name="chart"
                Hoverable="False"/>
        </StackPanel>
    </Grid>
</Window>
